ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

When import cpprb, I got ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject.

Recently, NumPy has changed its ABI at version 1.20.0 ( Release Note, PR and Review).

For user, you can build that library by yourself to fix. For developer, distributed library should be build with NumPy v1.19.5 or older.

As far as my quick check;

  • OK: Compile with NumPy v1.19.5 and run with NumPy v1.20.0
  • NG: Compile with NumPy v1.20.0 and run with NumPy v1.19.5
Avatar
Hiroyuki Yamada

My research interests include machine learning, cloud native conputing.

Related